<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/web/answerServlet" method="post">
        姓名：<input type="text" name="name"><br>
        性别：<input type="radio" name="sex" value="male" checked>男
             <input type="radio" name="sex" value="female">女
        <br>
        爱好：<input type="checkbox" name="hobby" value="sport">运动
             <input type="checkbox" name="hobby" value="sleep">睡觉
             <input type="checkbox" name="hobby" value="eat">吃饭
        <br>
        <input type="submit" value="提交">

    </form>
</body>
</html>